import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import vueSetupExtend from 'vite-plugin-vue-setup-extend';
import AutoImport from 'unplugin-auto-import/vite';

// https://vite.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    vueSetupExtend(),
    AutoImport({ imports: ['vue', 'vue-router'], eslintrc: { enabled: true } }),
  ],
  resolve: {
    alias: {
      '@': '/src',
    },
  },
});
